import React from 'react';
import RcMenu, { SubMenu, MenuItem } from 'rc-menu';

export default class Menu extends React.Component {
  static Item = MenuItem;
  static SubMenu = SubMenu;
  render() {
    const { children, ...props } = this.props;
    return (
      <RcMenu {...props} prefixCls="x-menu">
        {children}
      </RcMenu>
    );
  }
}
